//
//  main.swift
//  commandLine
//
//  Created by zmyl on 2024/9/17.
//

import Foundation

print("Hello, World!")

var mutablePerson = (name: "Alice", age: 30)
print("刚开始\(mutablePerson.0)")

mutablePerson.name = "Bob"  // 正确

print("后面\(mutablePerson.0)")

class Person {
    var name:String
    var address:String
    init(name: String, address: String) {
        self.name = name
        self.address = address
    }
}

struct Bill {
    let amount:Float
    let billen:Person
}

extension Bill:Equatable{}
func ==(lhs:Bill,rhs:Bill) -> Bool {
    return lhs.amount == rhs.amount && lhs.billen === rhs.billen;
}



//print(mutablePerson.0)
